<?php
Zend_Loader::loadClass("Application_Ajax_Server_Function");
Zend_Loader::loadClass('GasCategories');
class getGasCategoriesList extends Application_Ajax_Server_Function
{
	public function call() {
		$categorie = new GasCategories();
		$recordSet = $categorie->select()->from($categorie, array("id", "name"))
		->where("status > ?", 0)
		->order("name");
		$cats = $categorie->fetchAll($recordSet)->toArray();
		return $cats;
	}
}
